package com.abaaba.project2.controller.wxcontroller;

import com.abaaba.project2.bean.WXCommentAccept;
import com.abaaba.project2.bean.vo.wx.WXCatalogIndexLevelTwoShowListVO;
import com.abaaba.project2.bean.vo.wx.WXCatalogIndexShowListVO;
import com.abaaba.project2.bean.vo.wx.WXCommentCountShowVO;
import com.abaaba.project2.bean.vo.wx.WXCommentListShowVO;
import com.abaaba.project2.service.wx.WXCatalogIndexService;
import com.abaaba.project2.service.wx.WXCommentListShowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wx/comment")
public class WXCommentListController {

    @Autowired
    WXCommentListShowService wxCommentListShowService;

    @RequestMapping("/count")
    public WXCommentCountShowVO WXCommentCountShowList(WXCommentAccept wxCommentAccept)
    {
        WXCommentCountShowVO wxCommentCountShowVO = wxCommentListShowService.wxCommentCountShow(wxCommentAccept);
        return wxCommentCountShowVO;
    }

    @RequestMapping("/list")
    public WXCommentListShowVO WXCommentListShowList(WXCommentAccept wxCommentAccept)
    {
        WXCommentListShowVO wxCommentListShowVO = wxCommentListShowService.wxCommentListShow(wxCommentAccept);
        return wxCommentListShowVO;
    }





}
